FROM myopenjdk:8-jdk-alpine

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtim && \
    echo "Asia/Shanghai" > /etc/timezone

ADD manu-pdm.jar /manu-pdm.jar
ADD config/ /config/
ADD pdm-file/ /pdm-file/
RUN mkdir /icare_web_root

ENV JAVA_OPTS=""
CMD sleep ${SLEEP_SECOND} && java  ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom  -Dspring.profiles.active=prod -Djava.io.tmpdir=/icare_web_root  -jar  /manu-pdm.jar

